package com.hqhsc.module.manage.activity.domain;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class ActivityChannelDetailRowMapper implements RowMapper<ActivityChannelDetail>{
	public ActivityChannelDetail mapRow(ResultSet rs, int arg1) throws SQLException {
        ActivityChannelDetail activity_channel_detail=new ActivityChannelDetail();

        activity_channel_detail.setId(rs.getInt("id"));
        activity_channel_detail.setActivity_id(rs.getLong("activity_id"));

        activity_channel_detail.setChannel_id(rs.getLong("channel_id"));
        activity_channel_detail.setPv(rs.getLong("pv"));
        activity_channel_detail.setUv(rs.getLong("uv"));
        activity_channel_detail.setPoint_count(rs.getLong("point_count"));
        activity_channel_detail.setSignup_count(rs.getLong("signup_count"));
        activity_channel_detail.setQr_code(rs.getString("qr_code"));
        activity_channel_detail.setCreate_at(rs.getString("create_at"));

        try{
            activity_channel_detail.setChannel_name(rs.getString("name"));
        } catch(Exception e){}

        try{
            activity_channel_detail.setSpread_cost(rs.getLong("spread_cost"));
        } catch (Exception e){}


		return activity_channel_detail;
	}
}
